<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>促销信息列表 | 社交购物</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        :root {
            --primary: #4f46e5;
            --primary-light: #818cf8;
            --primary-dark: #3730a3;
            --secondary: #64748b;
            --light: #f8fafc;
            --dark: #1e293b;
            --danger: #ef4444;
            --success: #10b981;
            --warning: #f59e0b;
            --border: #e2e8f0;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            --radius: 8px;
            --transition: all 0.3s ease;
        }
        
        body {
            font-family: 'Inter', system-ui, sans-serif;
            background-color: #f1f5f9;
            color: var(--dark);
            line-height: 1.6;
        }
        
        /* 导航栏 */
        .navbar {
            background-color: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            padding: 0.75rem 0;
        }
        
        .logo {
            font-weight: 700;
            font-size: 1.5rem;
            color: var(--primary);
            text-decoration: none;
        }
        
        .search-bar {
            max-width: 400px;
            width: 100%;
            position: relative;
        }
        
        .search-input {
            width: 100%;
            padding: 0.5rem 1rem 0.5rem 2.5rem;
            border: 1px solid var(--border);
            border-radius: 30px;
            font-size: 0.95rem;
            transition: var(--transition);
        }
        
        .search-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }
        
        .search-icon {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--secondary);
        }
        
        .nav-link {
            color: var(--secondary);
            margin-left: 1rem;
            transition: var(--transition);
        }
        
        .nav-link:hover, .nav-link.active {
            color: var(--primary);
        }
        
        /* 主内容区 */
        .main-container {
            padding: 2rem 0;
        }
        
        .page-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
        }
        
        /* 筛选区域 */
        .filters-container {
            background-color: white;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .filter-section {
            margin-bottom: 1.5rem;
        }
        
        .filter-section:last-child {
            margin-bottom: 0;
        }
        
        .filter-title {
            font-weight: 600;
            margin-bottom: 1rem;
            font-size: 1.1rem;
        }
        
        .filter-options {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }
        
        .filter-tag {
            background-color: var(--light);
            border: 1px solid var(--border);
            border-radius: 30px;
            padding: 0.35rem 1rem;
            font-size: 0.9rem;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .filter-tag:hover {
            background-color: rgba(79, 70, 229, 0.1);
            border-color: var(--primary-light);
        }
        
        .filter-tag.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        .price-range {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .price-input {
            flex: 1;
            padding: 0.5rem;
            border: 1px solid var(--border);
            border-radius: 6px;
            font-size: 0.9rem;
        }
        
        .price-input:focus {
            outline: none;
            border-color: var(--primary);
        }
        
        .filter-actions {
            display: flex;
            justify-content: flex-end;
            gap: 1rem;
            margin-top: 1rem;
        }
        
        .btn-reset {
            background-color: transparent;
            border: 1px solid var(--border);
            color: var(--secondary);
            padding: 0.5rem 1.25rem;
            border-radius: 6px;
            font-size: 0.95rem;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .btn-reset:hover {
            background-color: var(--light);
        }
        
        .btn-apply {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 0.5rem 1.25rem;
            border-radius: 6px;
            font-size: 0.95rem;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .btn-apply:hover {
            background-color: var(--primary-dark);
        }
        
        /* 排序和视图切换 */
        .list-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .sort-options {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .sort-label {
            font-size: 0.95rem;
            color: var(--secondary);
        }
        
        .sort-select {
            padding: 0.4rem 0.75rem;
            border: 1px solid var(--border);
            border-radius: 6px;
            font-size: 0.95rem;
            color: var(--dark);
        }
        
        .view-options {
            display: flex;
            gap: 0.5rem;
        }
        
        .view-btn {
            width: 36px;
            height: 36px;
            border-radius: 6px;
            border: 1px solid var(--border);
            background-color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--secondary);
            cursor: pointer;
            transition: var(--transition);
        }
        
        .view-btn:hover, .view-btn.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        /* 促销列表 */
        .promotions-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
        }
        
        .promotions-list {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }
        
        .promo-card {
            background-color: white;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            overflow: hidden;
            transition: var(--transition);
        }
        
        .promo-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }
        
        .promo-card.list-view {
            display: flex;
            height: 200px;
        }
        
        .promo-image-container {
            position: relative;
            overflow: hidden;
        }
        
        .promo-image {
            width: 100%;
            height: 180px;
            object-fit: cover;
            transition: var(--transition);
        }
        
        .list-view .promo-image-container {
            flex: 0 0 200px;
        }
        
        .list-view .promo-image {
            height: 100%;
        }
        
        .promo-card:hover .promo-image {
            transform: scale(1.05);
        }
        
        .promo-badge {
            position: absolute;
            top: 0.75rem;
            left: 0.75rem;
            background-color: var(--danger);
            color: white;
            font-size: 0.8rem;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-weight: 600;
        }
        
        .promo-content {
            padding: 1.25rem;
        }
        
        .list-view .promo-content {
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        .promo-author {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.75rem;
            font-size: 0.85rem;
        }
        
        .author-avatar {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .author-name {
            font-weight: 600;
            color: var(--dark);
        }
        
        .post-time {
            color: var(--secondary);
        }
        
        .promo-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .promo-desc {
            color: var(--secondary);
            font-size: 0.9rem;
            margin-bottom: 1rem;
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .list-view .promo-desc {
            -webkit-line-clamp: 3;
            margin-bottom: auto;
        }
        
        .promo-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .promo-stats {
            display: flex;
            gap: 1rem;
            color: var(--secondary);
            font-size: 0.85rem;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        .promo-actions {
            display: flex;
            gap: 0.5rem;
        }
        
        .action-btn {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            border: none;
            background-color: var(--light);
            color: var(--secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .action-btn:hover {
            background-color: rgba(79, 70, 229, 0.1);
            color: var(--primary);
        }
        
        .action-btn.liked {
            color: var(--danger);
            background-color: rgba(239, 68, 68, 0.1);
        }
        
        .action-btn.saved {
            color: var(--primary);
            background-color: rgba(79, 70, 229, 0.1);
        }
        
        /* 分页 */
        .pagination-container {
            margin-top: 2.5rem;
            display: flex;
            justify-content: center;
        }
        
        .pagination {
            display: flex;
            gap: 0.5rem;
        }
        
        .page-btn {
            width: 36px;
            height: 36px;
            border-radius: 6px;
            border: 1px solid var(--border);
            background-color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--secondary);
            cursor: pointer;
            transition: var(--transition);
        }
        
        .page-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
        }
        
        .page-btn.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        .page-btn.disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        .page-btn.disabled:hover {
            border-color: var(--border);
            color: var(--secondary);
        }
        
        /* 响应式调整 */
        @media (max-width: 992px) {
            .search-bar {
                max-width: 300px;
            }
        }
        
        @media (max-width: 768px) {
            .navbar {
                padding: 0.75rem;
            }
            
            .search-bar {
                max-width: 100%;
                margin: 1rem 0;
            }
            
            .list-controls {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }
            
            .promotions-grid {
                grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            }
            
            .promo-card.list-view {
                flex-direction: column;
                height: auto;
            }
            
            .list-view .promo-image-container {
                flex: none;
            }
            
            .list-view .promo-image {
                height: 180px;
            }
        }
        
        @media (max-width: 576px) {
            .promotions-grid {
                grid-template-columns: 1fr;
            }
            
            .filter-options {
                gap: 0.5rem;
            }
            
            .filter-tag {
                padding: 0.25rem 0.75rem;
                font-size: 0.85rem;
            }
            
            .price-range {
                flex-direction: column;
                align-items: stretch;
                gap: 0.75rem;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg">
        <div class="container">
            <a href="#" class="logo">ShopSocial</a>
            
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent">
                <i class="fas fa-bars"></i>
            </button>
            
            <div class="collapse navbar-collapse" id="navbarContent">
                <div class="search-bar mx-auto">
                    <i class="fas fa-search search-icon"></i>
                    <input type="text" class="search-input" placeholder="搜索促销信息、品牌或关键词...">
                </div>
                
                <ul class="navbar-nav ms-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="#">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="#">促销</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">关注</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">消息</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">
                            <i class="fas fa-user-circle"></i>
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
    
    <!-- 主内容区 -->
    <div class="main-container">
        <div class="container">
            <h1 class="page-title">促销信息</h1>
            
            <!-- 筛选区域 -->
            <div class="filters-container">
                <div class="row">
                    <div class="col-md-4 filter-section">
                        <h3 class="filter-title">分类</h3>
                        <div class="filter-options">
                            <div class="filter-tag active">全部</div>
                            <div class="filter-tag">服装鞋帽</div>
                            <div class="filter-tag">数码电子</div>
                            <div class="filter-tag">美妆护肤</div>
                            <div class="filter-tag">家居生活</div>
                            <div class="filter-tag">食品饮料</div>
                            <div class="filter-tag">旅游出行</div>
                            <div class="filter-tag">图书音像</div>
                        </div>
                    </div>
                    
                    <div class="col-md-4 filter-section">
                        <h3 class="filter-title">促销类型</h3>
                        <div class="filter-options">
                            <div class="filter-tag active">全部</div>
                            <div class="filter-tag">限时折扣</div>
                            <div class="filter-tag">满减活动</div>
                            <div class="filter-tag">买一送一</div>
                            <div class="filter-tag">优惠券</div>
                            <div class="filter-tag">新品特惠</div>
                            <div class="filter-tag">清仓促销</div>
                        </div>
                    </div>
                    
                    <div class="col-md-4 filter-section">
                        <h3 class="filter-title">价格范围</h3>
                        <div class="price-range">
                            <input type="number" class="price-input" placeholder="最低价格" min="0">
                            <span>-</span>
                            <input type="number" class="price-input" placeholder="最高价格" min="0">
                        </div>
                    </div>
                </div>
                
                <div class="row">
                    <div class="col-md-4 filter-section">
                        <h3 class="filter-title">热度</h3>
                        <div class="filter-options">
                            <div class="filter-tag active">全部</div>
                            <div class="filter-tag">热门推荐</div>
                            <div class="filter-tag">最新发布</div>
                            <div class="filter-tag">最多点赞</div>
                            <div class="filter-tag">最多评论</div>
                        </div>
                    </div>
                    
                    <div class="col-md-4 filter-section">
                        <h3 class="filter-title">时间范围</h3>
                        <div class="filter-options">
                            <div class="filter-tag active">全部</div>
                            <div class="filter-tag">今天</div>
                            <div class="filter-tag">近3天</div>
                            <div class="filter-tag">近一周</div>
                            <div class="filter-tag">近一个月</div>
                        </div>
                    </div>
                    
                    <div class="col-md-4 filter-section">
                        <h3 class="filter-title">来源</h3>
                        <div class="filter-options">
                            <div class="filter-tag active">全部</div>
                            <div class="filter-tag">官方账号</div>
                            <div class="filter-tag">达人推荐</div>
                            <div class="filter-tag">好友分享</div>
                            <div class="filter-tag">关注的人</div>
                        </div>
                    </div>
                </div>
                
                <div class="filter-actions">
                    <button class="btn-reset">重置筛选</button>
                    <button class="btn-apply">应用筛选</button>
                </div>
            </div>
            
            <!-- 排序和视图切换 -->
            <div class="list-controls">
                <div class="sort-options">
                    <span class="sort-label">排序方式：</span>
                    <select class="sort-select">
                        <option selected>智能推荐</option>
                        <option>最新发布</option>
                        <option>最多点赞</option>
                        <option>最多评论</option>
                        <option>价格从低到高</option>
                        <option>价格从高到低</option>
                    </select>
                </div>
                
                <div class="view-options">
                    <button class="view-btn active" title="网格视图">
                        <i class="fas fa-th"></i>
                    </button>
                    <button class="view-btn" title="列表视图">
                        <i class="fas fa-list"></i>
                    </button>
                </div>
            </div>
            
            <!-- 促销列表 -->
            <div class="promotions-grid" id="promotionsContainer">
                <!-- 促销卡片1 -->
                <div class="promo-card">
                    <div class="promo-image-container">
                        <img src="https://picsum.photos/600/400?random=10" alt="夏季服装促销" class="promo-image">
                        <div class="promo-badge">限时</div>
                    </div>
                    
                    <div class="promo-content">
                        <div class="promo-author">
                            <img src="https://picsum.photos/100/100?random=1" alt="用户头像" class="author-avatar">
                            <span class="author-name">时尚精选</span>
                            <span class="post-time">· 2小时前</span>
                        </div>
                        
                        <h3 class="promo-title">夏季服装大促，全场低至3折起</h3>
                        
                        <p class="promo-desc">夏季新品上市，配合换季清仓，全场服装3折起，更有满减优惠券可以叠加使用，先到先得！</p>
                        
                        <div class="promo-meta">
                            <div class="promo-stats">
                                <div class="stat-item">
                                    <i class="far fa-eye"></i>
                                    <span>2.5k</span>
                                </div>
                                <div class="stat-item">
                                    <i class="far fa-comment"></i>
                                    <span>128</span>
                                </div>
                            </div>
                            
                            <div class="promo-actions">
                                <button class="action-btn like-btn">
                                    <i class="far fa-heart"></i>
                                </button>
                                <button class="action-btn save-btn">
                                    <i class="far fa-bookmark"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 促销卡片2 -->
                <div class="promo-card">
                    <div class="promo-image-container">
                        <img src="https://picsum.photos/600/400?random=11" alt="数码产品促销" class="promo-image">
                        <div class="promo-badge">特惠</div>
                    </div>
                    
                    <div class="promo-content">
                        <div class="promo-author">
                            <img src="https://picsum.photos/100/100?random=2" alt="用户头像" class="author-avatar">
                            <span class="author-name">数码科技</span>
                            <span class="post-time">· 昨天</span>
                        </div>
                        
                        <h3 class="promo-title">618数码狂欢节，新品首发特惠</h3>
                        
                        <p class="promo-desc">年度最大数码促销活动，新品手机、电脑、耳机等产品限时特惠，更有赠品相送！</p>
                        
                        <div class="promo-meta">
                            <div class="promo-stats">
                                <div class="stat-item">
                                    <i class="far fa-eye"></i>
                                    <span>5.8k</span>
                                </div>
                                <div class="stat-item">
                                    <i class="far fa-comment"></i>
                                    <span>342</span>
                                </div>
                            </div>
                            
                            <div class="promo-actions">
                                <button class="action-btn like-btn liked">
                                    <i class="fas fa-heart"></i>
                                </button>
                                <button class="action-btn save-btn">
                                    <i class="far fa-bookmark"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 促销卡片3 -->
                <div class="promo-card">
                    <div class="promo-image-container">
                        <img src="https://picsum.photos/600/400?random=12" alt="餐饮优惠" class="promo-image">
                        <div class="promo-badge">优惠券</div>
                    </div>
                    
                    <div class="promo-content">
                        <div class="promo-author">
                            <img src="https://picsum.photos/100/100?random=3" alt="用户头像" class="author-avatar">
                            <span class="author-name">美食优选</span>
                            <span class="post-time">· 3天前</span>
                        </div>
                        
                        <h3 class="promo-title">餐饮优惠券合集，多家餐厅通用</h3>
                        
                        <p class="promo-desc">整理了全城50+家热门餐厅的优惠券，从火锅到日料，从快餐到正餐，满足你的各种口味需求。</p>
                        
                        <div class="promo-meta">
                            <div class="promo-stats">
                                <div class="stat-item">
                                    <i class="far fa-eye"></i>
                                    <span>1.2k</span>
                                </div>
                                <div class="stat-item">
                                    <i class="far fa-comment"></i>
                                    <span>86</span>
                                </div>
                            </div>
                            
                            <div class="promo-actions">
                                <button class="action-btn like-btn">
                                    <i class="far fa-heart"></i>
                                </button>
                                <button class="action-btn save-btn saved">
                                    <i class="fas fa-bookmark"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 促销卡片4 -->
                <div class="promo-card">
                    <div class="promo-image-container">
                        <img src="https://picsum.photos/600/400?random=13" alt="旅行套餐" class="promo-image">
                        <div class="promo-badge">买赠</div>
                    </div>
                    
                    <div class="promo-content">
                        <div class="promo-author">
                            <img src="https://picsum.photos/100/100?random=4" alt="用户头像" class="author-avatar">
                            <span class="author-name">旅行特惠</span>
                            <span class="post-time">· 4小时前</span>
                        </div>
                        
                        <h3 class="promo-title">端午小长假旅行套餐，买二送一</h3>
                        
                        <p class="promo-desc">精选国内10大热门旅行目的地，端午小长假套餐买二送一，包含酒店住宿和景点门票。</p>
                        
                        <div class="promo-meta">
                            <div class="promo-stats">
                                <div class="stat-item">
                                    <i class="far fa-eye"></i>
                                    <span>3.7k</span>
                                </div>
                                <div class="stat-item">
                                    <i class="far fa-comment"></i>
                                    <span>215</span>
                                </div>
                            </div>
                            
                            <div class="promo-actions">
                                <button class="action-btn like-btn">
                                    <i class="far fa-heart"></i>
                                </button>
                                <button class="action-btn save-btn">
                                    <i class="far fa-bookmark"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 促销卡片5 -->
                <div class="promo-card">
                    <div class="promo-image-container">
                        <img src="https://picsum.photos/600/400?random=14" alt="家居用品" class="promo-image">
                        <div class="promo-badge">限量</div>
                    </div>
                    
                    <div class="promo-content">
                        <div class="promo-author">
                            <img src="https://picsum.photos/100/100?random=5" alt="用户头像" class="author-avatar">
                            <span class="author-name">家居生活</span>
                            <span class="post-time">· 1小时前</span>
                        </div>
                        
                        <h3 class="promo-title">北欧风格家居用品，限时7折</h3>
                        
                        <p class="promo-desc">精选北欧风格家居用品，包括灯具、装饰品、收纳系列等，限时7折，仅剩10件！</p>
                        
                        <div class="promo-meta">
                            <div class="promo-stats">
                                <div class="stat-item">
                                    <i class="far fa-eye"></i>
                                    <span>876</span>
                                </div>
                                <div class="stat-item">
                                    <i class="far fa-comment"></i>
                                    <span>42</span>
                                </div>
                            </div>
                            
                            <div class="promo-actions">
                                <button class="action-btn like-btn">
                                    <i class="far fa-heart"></i>
                                </button>
                                <button class="action-btn save-btn">
                                    <i class="far fa-bookmark"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 促销卡片6 -->
                <div class="promo-card">
                    <div class="promo-image-container">
                        <img src="https://picsum.photos/600/400?random=15" alt="美妆产品" class="promo-image">
                        <div class="promo-badge">满减</div>
                    </div>
                    
                    <div class="promo-content">
                        <div class="promo-author">
                            <img src="https://picsum.photos/100/100?random=6" alt="用户头像" class="author-avatar">
                            <span class="author-name">美妆护肤</span>
                            <span class="post-time">· 5小时前</span>
                        </div>
                        
                        <h3 class="promo-title">国际大牌美妆，满1000减300</h3>
                        
                        <p class="promo-desc">国际知名美妆品牌大促，满1000减300，满2000减700，支持专柜自提和快递配送。</p>
                        
                        <div class="promo-meta">
                            <div class="promo-stats">
                                <div class="stat-item">
                                    <i class="far fa-eye"></i>
                                    <span>1.5k</span>
                                </div>
                                <div class="stat-item">
                                    <i class="far fa-comment"></i>
                                    <span>78</span>
                                </div>
                            </div>
                            
                            <div class="promo-actions">
                                <button class="action-btn like-btn">
                                    <i class="far fa-heart"></i>
                                </button>
                                <button class="action-btn save-btn">
                                    <i class="far fa-bookmark"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 分页 -->
            <div class="pagination-container">
                <div class="pagination">
                    <button class="page-btn disabled">
                        <i class="fas fa-chevron-left"></i>
                    </button>
                    <button class="page-btn active">1</button>
                    <button class="page-btn">2</button>
                    <button class="page-btn">3</button>
                    <button class="page-btn">4</button>
                    <button class="page-btn">5</button>
                    <button class="page-btn">
                        <i class="fas fa-chevron-right"></i>
                    </button>
                </div>
            </div>
        </div>
    </div>
    
    <!-- Bootstrap 5 JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 筛选标签切换
            const filterTags = document.querySelectorAll('.filter-tag');
            filterTags.forEach(tag => {
                tag.addEventListener('click', function() {
                    // 如果是"全部"标签，取消同组其他标签的选中状态
                    if (this.textContent === '全部') {
                        const siblings = Array.from(this.parentElement.children);
                        siblings.forEach(sib => sib.classList.remove('active'));
                        this.classList.add('active');
                    } else {
                        // 取消同组"全部"标签的选中状态
                        const siblings = Array.from(this.parentElement.children);
                        siblings.forEach(sib => {
                            if (sib.textContent === '全部') {
                                sib.classList.remove('active');
                            }
                        });
                        // 切换当前标签状态
                        this.classList.toggle('active');
                    }
                });
            });
            
            // 视图切换
            const viewBtns = document.querySelectorAll('.view-btn');
            const promotionsContainer = document.getElementById('promotionsContainer');
            const promoCards = document.querySelectorAll('.promo-card');
            
            viewBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    // 更新按钮状态
                    viewBtns.forEach(b => b.classList.remove('active'));
                    this.classList.add('active');
                    
                    // 切换视图
                    if (this.title === '网格视图') {
                        promotionsContainer.classList.remove('promotions-list');
                        promotionsContainer.classList.add('promotions-grid');
                        promoCards.forEach(card => card.classList.remove('list-view'));
                    } else {
                        promotionsContainer.classList.remove('promotions-grid');
                        promotionsContainer.classList.add('promotions-list');
                        promoCards.forEach(card => card.classList.add('list-view'));
                    }
                });
            });
            
            // 点赞功能
            document.querySelectorAll('.like-btn').forEach(btn => {
                btn.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    
                    if (icon.classList.contains('far')) {
                        // 点赞
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        this.classList.add('liked');
                    } else {
                        // 取消点赞
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        this.classList.remove('liked');
                    }
                });
            });
            
            // 收藏功能
            document.querySelectorAll('.save-btn').forEach(btn => {
                btn.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    
                    if (icon.classList.contains('far')) {
                        // 收藏
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        this.classList.add('saved');
                    } else {
                        // 取消收藏
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        this.classList.remove('saved');
                    }
                });
            });
            
            // 重置筛选
            document.querySelector('.btn-reset').addEventListener('click', function() {
                // 重置所有筛选标签
                filterTags.forEach(tag => {
                    if (tag.textContent === '全部') {
                        tag.classList.add('active');
                    } else {
                        tag.classList.remove('active');
                    }
                });
                
                // 重置价格输入
                document.querySelectorAll('.price-input').forEach(input => {
                    input.value = '';
                });
            });
            
            // 应用筛选
            document.querySelector('.btn-apply').addEventListener('click', function() {
                // 在实际应用中，这里会根据筛选条件发送请求获取数据
                // 这里仅做演示，显示一个简单的提示
                alert('筛选条件已应用！');
            });
            
            // 分页功能
            const pageBtns = document.querySelectorAll('.page-btn:not(.disabled)');
            pageBtns.forEach(btn => {
                if (!btn.querySelector('i')) { // 排除箭头按钮
                    btn.addEventListener('click', function() {
                        pageBtns.forEach(b => b.classList.remove('active'));
                        this.classList.add('active');
                        // 在实际应用中，这里会加载对应页的数据
                    });
                }
            });
            
            // 搜索功能
            const searchInput = document.querySelector('.search-input');
            searchInput.addEventListener('keypress', function(e) {
                if (e.key === 'Enter') {
                    // 在实际应用中，这里会执行搜索操作
                    alert(`搜索内容: ${this.value}`);
                }
            });
        });
    </script>
</body>
</html>
    
